const path = require('path');
module.exports = {
  entry: './src/main.js',
  output: {
    path: path.resolve(__dirname, 'build'),
    filename: 'index.js',
  },
  mode: 'development',
  module: {
    rules: [
      {
        test: /\.js$/, //要检查的文件--后缀名为js的文件
        exclude: /node_modules/, //忽略的文件
        loader: 'eslint-loader', //用什么包检查
      },
    ],
  },
};
